package com.zhaojun.cloud.service.api;

import com.zhaojun.cloud.common.pojo.User;
import com.zhaojun.cloud.service.api.hystrix.HystrixFallBackUserService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * wwj
 * 2018/11/26  17:11
 */
@FeignClient(name = "zhaojun-service-account",fallbackFactory = HystrixFallBackUserService.class)
public interface UserService {

    @GetMapping("/findUserById")
    User findUserById(@RequestParam("id") Long id);
}